<template>
  <j-modal
    :title="title"
    :fullscreen="true"
    :width="1600"
    :visible="visible"
    :maskClosable="false"
    @close="close"
    destroyOnClose
  >
    <a-table
      ref="table"
      size="middle"
      bordered
      rowKey="id"
      :columns="columns"
      :dataSource="dataSource"
      :pagination="ipagination"
      :loading="loading"
      @change="handleTableChange"
      class="antableClass"
    ></a-table>
  </j-modal>
</template>

<script>
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import { columns1 } from './checkColumns'
export default {
  name: 'ProjectQualityDetails',
  mixins: [JeecgListMixin],
  data() {
    return {
      queryParam: {
        orgId: '',
        proId: '',
        vchId: ''
      },
      record: {},
      visible: false,
      title: '详情列表',
      columns: columns1(),
      dataSource: [],
      url: {
        list: '/sjmx/getZZSDetailByVchId'
      },
      disableMixinCreated:true
    }
  },
  methods: {
    close() {
      this.visible = false
      this.record = {}
      this.queryParam = {}
    },
    edit(record, params,flag) {
      if(flag==1){
        this.queryParam.vchId = record.jId
      }else{
        this.queryParam.vchId = record.xId
      }
      this.loadData(1)
      this.visible = true
    }
  }
}
</script>

<style lang="less" scoped>
@import '~@assets/less/tableTheme.less';
</style>
